package com.whut.mapper;

import com.whut.model.Contractinfo;

import java.util.List;

public interface ContractinfoMapper {
    int deleteByPrimaryKey(Integer contractId);

    int insert(Contractinfo record);

    int insertSelective(Contractinfo record);

    Contractinfo selectByPrimaryKey(Integer contractId);

    int updateByPrimaryKeySelective(Contractinfo record);

    int updateByPrimaryKey(Contractinfo record);

    /*my methods*/
    public List<Contractinfo> getContractUnfinished();

    /*wyh*/
    /*vague search*/
    List<Contractinfo> getContractInfoByInput(String input);

    List<Contractinfo> getAllContractUnFinished();

    List<Contractinfo> getContractClient();

    int getContractIdByClient(String client);

    String getClientByContractId(int contractId);

    List<Contractinfo> getContractInfoForUserStatistic(int userId,String startTime,String endTime);

    boolean editContractInfo(Contractinfo ci);

    List<Object> getClientByType(String clientType);

    List<Object> getAllContractInfo();

    int updateContractGeoByContractId(Contractinfo record);

    Contractinfo getClientByContractId1(Integer contractId);
}